<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Mapache: Referencia de la Clase Servidor</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/search.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
</script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Generado por Doxygen 1.7.3 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "../../search",false,'Buscar');
--></script>
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../Mapache.png"></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">Mapache&#160;<span id="projectnumber">v1.0.0</span></div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="../../index.html"><span>Página&#160;principal</span></a></li>
      <li class="current"><a href="../../annotated.html"><span>Clases</span></a></li>
      <li><a href="../../files.html"><span>Archivos</span></a></li>
      <li id="searchli">
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="../../search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Buscar" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="../../annotated.html"><span>Lista&#160;de&#160;clases</span></a></li>
      <li><a href="../../classes.html"><span>Índice&#160;de&#160;clases</span></a></li>
      <li><a href="../../inherits.html"><span>Jerarquía&#160;de&#160;la&#160;clase</span></a></li>
      <li><a href="../../functions.html"><span>Miembros&#160;de&#160;las&#160;clases</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('d6/d8d/classServidor.html','../../');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Métodos públicos</a> &#124;
<a href="#pri-attribs">Atributos privados</a>  </div>
  <div class="headertitle">
<h1>Referencia de la Clase Servidor</h1>  </div>
</div>
<div class="contents">
<!-- doxytag: class="Servidor" -->
<p><code>#include &lt;Servidor.h&gt;</code></p>
<div class="dynheader">
Diagrama de colaboración para Servidor:</div>
<div class="dyncontent">
<div class="center"><img src="../../db/de8/classServidor__coll__graph.png" border="0" usemap="#Servidor_coll__map" alt="Collaboration graph"/></div>
<map name="Servidor_coll__map" id="Servidor_coll__map">
<area shape="rect" id="node2" href="../../de/dcb/classConfiguracion.html" title="Configuracion" alt="" coords="83,213,184,243"/><area shape="rect" id="node4" href="../../d6/d3c/classConfiguracionBasica.html" title="ConfiguracionBasica" alt="" coords="5,117,147,147"/><area shape="rect" id="node8" href="../../d9/df9/classConfiguracionLogs.html" title="ConfiguracionLogs" alt="" coords="171,117,301,147"/></map>
<center><span class="legend">[<a target="top" href="../../graph_legend.html">significado de colores y flechas</a>]</span></center></div>

<p><a href="../../dd/d0f/classServidor-members.html">Lista de todos los miembros.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Métodos públicos</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d8d/classServidor.html#aea5421c4d4ad641f40abd2e94763f079">Servidor</a> (const <a class="el" href="../../de/dcb/classConfiguracion.html">Configuracion</a> &amp;c)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d8d/classServidor.html#a5ac1d9360e9c3010be4023f315cd64c1">~Servidor</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d8d/classServidor.html#ae3b002b5e6d2f15733a0b802bcd8e402">start</a> ()</td></tr>
<tr><td colspan="2"><h2><a name="pri-attribs"></a>
Atributos privados</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="../../de/dcb/classConfiguracion.html">Configuracion</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d6/d8d/classServidor.html#ae7bdb3e26aecccf6a7b8c16384f07b48">config</a></td></tr>
</table>
<hr/><a name="_details"></a><h2>Descripción detallada</h2>
<div class="textblock"><p>Una vez que se tiene una configuración válida, esta clase es la encargada de correr un servidor con esa configuración. </p>
</div><hr/><h2>Documentación del constructor y destructor</h2>
<a class="anchor" id="aea5421c4d4ad641f40abd2e94763f079"></a><!-- doxytag: member="Servidor::Servidor" ref="aea5421c4d4ad641f40abd2e94763f079" args="(const Configuracion &amp;c)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Servidor::Servidor </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="../../de/dcb/classConfiguracion.html">Configuracion</a> &amp;&#160;</td>
          <td class="paramname"><em>c</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Contructor </p>
<dl><dt><b>Parámetros:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">c</td><td>es una configuración con la que se desea armar el servidor. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a5ac1d9360e9c3010be4023f315cd64c1"></a><!-- doxytag: member="Servidor::~Servidor" ref="a5ac1d9360e9c3010be4023f315cd64c1" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Servidor::~Servidor </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Destructor </p>

</div>
</div>
<hr/><h2>Documentación de las funciones miembro</h2>
<a class="anchor" id="ae3b002b5e6d2f15733a0b802bcd8e402"></a><!-- doxytag: member="Servidor::start" ref="ae3b002b5e6d2f15733a0b802bcd8e402" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Servidor::start </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Comienza con la ejecución del servidor. </p>
<dl class="return"><dt><b>Devuelve:</b></dt><dd>0 si tuvo exito, 1 si no pudo conectar el socket. </dd></dl>

<p><div class="dynheader">
Gráfico de llamadas para esta función:</div>
<div class="dyncontent">
<div class="center"><img src="../../d6/d8d/classServidor_ae3b002b5e6d2f15733a0b802bcd8e402_cgraph.png" border="0" usemap="#d6/d8d/classServidor_ae3b002b5e6d2f15733a0b802bcd8e402_cgraph" alt=""/></div>
<map name="d6/d8d/classServidor_ae3b002b5e6d2f15733a0b802bcd8e402_cgraph" id="d6/d8d/classServidor_ae3b002b5e6d2f15733a0b802bcd8e402_cgraph">
<area shape="rect" id="node3" href="../../dd/d10/classTCPSocket.html#a7e2dd0e88d503cbc41c82330a64f8df4" title="TCPSocket::aceptar" alt="" coords="225,5,367,35"/><area shape="rect" id="node7" href="../../dd/d10/classTCPSocket.html#a673e5ea670d221b9385241dd4459c8a1" title="TCPSocket::apagar" alt="" coords="521,84,657,113"/><area shape="rect" id="node9" href="../../da/db6/classServidorHttp.html#abfc1f39b6eff69cceccd664466a40d60" title="ServidorHttp::apagar" alt="" coords="225,109,367,139"/><area shape="rect" id="node12" href="../../dd/d10/classTCPSocket.html#a6d2efb4f9179b90860994ab1a69406d5" title="TCPSocket::bindear" alt="" coords="227,163,365,192"/><area shape="rect" id="node14" href="../../dd/d10/classTCPSocket.html#ac69e30e7c478215652cf9e36f039e260" title="TCPSocket::cerrar" alt="" coords="231,216,361,245"/><area shape="rect" id="node16" href="../../d1/dda/classProtocoloControl.html#ab40541d4e0d168c7b757bdeba5c00744" title="ProtocoloControl::enviarRespuestaDetenido" alt="" coords="157,269,435,299"/><area shape="rect" id="node22" href="../../dd/d10/classTCPSocket.html#a313dddefda786db1d0c1f83b9ef9697d" title="TCPSocket::escuchar" alt="" coords="221,323,371,352"/><area shape="rect" id="node24" href="../../de/dcb/classConfiguracion.html#a20fb9b7ad266b7dbc3ed1d383890917d" title="Configuracion::getConfiguracionBasica" alt="" coords="172,376,420,405"/><area shape="rect" id="node26" href="../../d6/d3c/classConfiguracionBasica.html#a7eb64ca4c5655bb222a0b5f763adb75b" title="ConfiguracionBasica::getPuerto" alt="" coords="193,429,399,459"/><area shape="rect" id="node28" href="../../d6/d3c/classConfiguracionBasica.html#a358ce98e821f8b86bb1ffeeebbd0480c" title="ConfiguracionBasica::getPuertoControl" alt="" coords="172,483,420,512"/><area shape="rect" id="node30" href="../../d0/d51/classThread.html#a4d9d788e98388a3217831a9046709deb" title="Thread::join" alt="" coords="251,536,341,565"/><area shape="rect" id="node32" href="../../d0/d51/classThread.html#a7eb2b0cd153514e0678540f019583c98" title="Thread::morir" alt="" coords="247,589,345,619"/><area shape="rect" id="node34" href="../../d1/dda/classProtocoloControl.html#a722e3ad421d7ea982a96fd36a484eb98" title="ProtocoloControl::recibirOperacionDetener" alt="" coords="163,643,429,672"/><area shape="rect" id="node40" href="../../d0/d51/classThread.html#a1f53ee62bd30a7924186ef26150ce262" title="Thread::start" alt="" coords="248,696,344,725"/><area shape="rect" id="node5" href="../../dd/d10/classTCPSocket.html#a7a50427a401d1a6f3209d51818bad901" title="TCPSocket::TCPSocket" alt="" coords="507,5,672,35"/><area shape="rect" id="node18" href="../../d1/dda/classProtocoloControl.html#a284ee14b91246db7948f59377bbc55c9" title="ProtocoloControl::enviarCaracter" alt="" coords="484,269,695,299"/><area shape="rect" id="node20" href="../../dd/d10/classTCPSocket.html#a2c6a999235f22bdc25cf62a2dec8213f" title="TCPSocket::enviar" alt="" coords="744,269,877,299"/><area shape="rect" id="node36" href="../../d1/dda/classProtocoloControl.html#a081c693483984bfbac4ff5988b61f147" title="ProtocoloControl::recibirCaracter" alt="" coords="484,643,695,672"/><area shape="rect" id="node38" href="../../dd/d10/classTCPSocket.html#a23ce5b78255bac6ce60f0e1fd90cca82" title="TCPSocket::recibir" alt="" coords="744,643,877,672"/><area shape="rect" id="node42" href="../../d0/d51/classThread.html#a9f081cd0e7611680ce792b834d14189a" title="Thread::init" alt="" coords="547,696,632,725"/><area shape="rect" id="node44" href="../../d0/d51/classThread.html#aae90dfabab3e1776cf01a26e7ee3a620" title="Thread::run" alt="" coords="767,696,855,725"/></map>
</div>
</p>

</div>
</div>
<hr/><h2>Documentación de los datos miembro</h2>
<a class="anchor" id="ae7bdb3e26aecccf6a7b8c16384f07b48"></a><!-- doxytag: member="Servidor::config" ref="ae7bdb3e26aecccf6a7b8c16384f07b48" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="../../de/dcb/classConfiguracion.html">Configuracion</a>&amp; <a class="el" href="../../d6/d8d/classServidor.html#ae7bdb3e26aecccf6a7b8c16384f07b48">Servidor::config</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/>La documentación para esta clase fue generada a partir de los siguientes ficheros:<ul>
<li>Mapache/src/servidor/<a class="el" href="../../da/d2f/Servidor_8h.html">Servidor.h</a></li>
<li>Mapache/src/servidor/<a class="el" href="../../d6/d1a/Servidor_8cpp.html">Servidor.cpp</a></li>
</ul>
</div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="../../d6/d8d/classServidor.html">Servidor</a>      </li>
      <li class="footer">Generado el Domingo, 20 de Noviembre de 2011 00:38:06 para Mapache por&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.7.3 </li>
    </ul>
  </div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Todo</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Clases</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Archivos</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Funciones</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>&apos;defines&apos;</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


</body>
</html>
